

import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import dashboard from '@/views/dashboard/dashboard.vue'



const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        redirect: '/dashboard',
    },
    {
        path: '/dashboard',
        name: 'Dashboard',
        component: dashboard,
    },
    {
        path: '/table',
        name: 'Table',
        component: () => import('@/views/table/table.vue'),
        meta: {
            isAlive: true,
        },
    },
    {
        path: '/atest',
        name: 'Atest',
        component: () => import('@/views/atest/atest.vue'),
    },

]
const router = createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: createWebHashHistory(),
    routes, // `routes: routes` 的缩写
})


export default router